package com.fs.sys.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.fs.common.base.domain.entity.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Map;

/**
 * 站内信
 *
 * @author  LiuQi 2025/3/18-12:28
 * @version V1.0
 **/
@Data
@TableName(value = "sys_inbox_msg", autoResultMap = true)
public class InboxMsgEntity extends BaseEntity {
    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 接收用户
     */
    private String receiverId;

    /**
     * 状态，0：未读，1：已读
     */
    private Integer status;

    /**
     * 阅读时间
     */
    private LocalDateTime readTime;

    /**
     * 附加数据
     */
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private Map<String, Object> metadata;
}
